package org.lanqiao.ssm.facede.auth.util;

import org.apache.shiro.crypto.hash.Sha256Hash;
import org.lanqiao.ssm.facede.auth.constant.EncryptConstant;

public class Encryption {
	/**
	 * sha加密
	 * 
	 * @param password
	 * @return
	 */
	public static String Sha256Hash(String password) {
		return new Sha256Hash(password, EncryptConstant.ENCRYPT_SALT, EncryptConstant.SALT_NUMS)
				.toBase64();
	}
	
}
